package com.mystudy.design_patterns.Singleton;

/**
 * @program: infoalgorithm
 * @description: 饿汉式单例模式
 * @author: zhouzhilong
 * @create: 2019-02-18 15:40
 **/
public class SingletonHungry {
    private static final SingletonHungry sh = new SingletonHungry();

    private SingletonHungry(){

    }

    public static SingletonHungry getInStance(){
        return sh;
    }


}
